let obj = {
    name: 'obj',
    inner: {
        a: 1,
        b: 2,
        c: {
            name: 'c'
        }
    }
}

// let newObj = {...obj}
let newObj = Object.assign({}, obj)
// let newObj = obj
newObj.name = 'a'

console.log(obj)